﻿using System.Data.Entity.ModelConfiguration;
using yiCommerce.Core.Domain.Products;

namespace yiCommerce.Data.Mapping.Products
{
    public class SpecificationAttributeMapping : EntityTypeConfiguration<SpecificationAttribute>
    {
        public SpecificationAttributeMapping()
        {
            this.ToTable("SpecificationAttribute");
            this.HasKey(sa => sa.Id);
            this.Property(sa => sa.Name).IsRequired();
        }
    }
}